<a id="share_id_<?php echo $this->id ?>" class="cp_share" href='#'>
    <?php echo $this->translate('POST_TO_MY_WALL') ?>
</a>
<script>
    jQuery("document").ready(function($){
        $("#share_id_<?php echo $this->id ?>").click(function(e){
            e.preventDefault();
            postToWall("<?php echo $this->id ?>", 
                    "<?php echo YouNet_Util::escapeForJs($this->title) ?>", 
                    "<?php echo YouNet_Util::escapeForJs($this->description) ?>", 
                    "<?php echo $this->url ?>", 
                    "<?php echo $this->image ?>", 
                    "<?php echo APPLICATION_NAME ?>"
                );
            return false;
        });
    });
</script>